<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%@ include file="/common/health.jsp"%>
<%
	String healthName = parameters.get("health_name");
	if ("血压".equals(healthName)) {
		parameters.put("key", System.currentTimeMillis() + "");
	}
	List<Map<String,String>> healthList = JSONUtil.fromJson(parameters.remove("health_data"), new TypeReference<List<Map<String,String>>>(){});
	if (isEmpty(healthList)) {
		Tools.encryptPrint(out, new Message(30041, "请传递健康数据"));
		return;
	}
	ArrayList rs = new ArrayList();
	for (Map<String,String> map : healthList) {
		parameters.putAll(map);
		msg = complete(parameters);
		rs.add(msg.get("result"));
	}
	Tools.encryptPrint(out, rs.contains("偏高") ? msg.put("result", "偏高") : rs.contains("偏低") ? msg.put("result", "偏低") : msg);
%>
